Sample1 - Line Sticker

Requirement


In [1]:
!pip3 install requests


Requirement already satisfied (use --upgrade to upgrade): requests in /home/web/notebook/venv/notebook/lib/python3.4/site-packages
Cleaning up...

In [2]:
!pip3 install beautifulsoup4


Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in /home/web/notebook/venv/notebook/lib/python3.4/site-packages
Cleaning up...

Quick Start

Import necessary librarys


In [3]:
import os

from bs4 import BeautifulSoup

#import lxml
import requests

Make a request


In [4]:
url = 'https://store.line.me/stickershop/product/6310/zh-Hant'
response = requests.get(url)
  • 得到的內容

In [5]:
soup = BeautifulSoup(response.text, "html.parser")

In [6]:
print(soup.prettify())


<!DOCTYPE html>
<html data-lang="zh-Hant" dir="ltr" lang="zh-Hant" prefix="fb: http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml">
 <head xmlns="http://www.w3.org/1999/xhtml">
  <meta charset="utf-8"/>
  <title>
   貓貓蟲咖波:喵喵叫 - LINE 官方貼圖
  </title>
  <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
  <link href="https://scdn.line-apps.com/n/line_store_sp/img/apple_touch_icon_precomposed.png" rel="shortcut icon" type="image/x-icon"/>
  <meta content="可愛的咖波終於會叫囉!喵喵喵" name="description"/>
  <meta content="LINE,貼圖,遊戲,道具,預付卡,電子郵件,訊息,SMS,聊天,iPhone,Android,應用程式" name="keywords"/>
  <meta content="product" property="og:type"/>
  <meta content="貓貓蟲咖波:喵喵叫 - LINE 官方貼圖" property="og:title"/>
  <meta content="https://store.line.me/stickershop/product/6310/zh-Hant" property="og:url"/>
  <meta content="可愛的咖波終於會叫囉!喵喵喵" property="og:description"/>
  <meta content="LINE STORE" property="og:site_name"/>
  <meta content="summary" name="twitter:card"/>
  <link href="/stickershop/product/6310/ja" hreflang="ja" rel="alternate"/>
  <link href="/stickershop/product/6310/en" hreflang="en" rel="alternate"/>
  <link href="/stickershop/product/6310/zh-Hant" hreflang="zh-Hant" rel="alternate"/>
  <link href="/stickershop/product/6310/zh-Hans" hreflang="zh-Hans" rel="alternate"/>
  <link href="/stickershop/product/6310/ko" hreflang="ko" rel="alternate"/>
  <link href="/stickershop/product/6310/th" hreflang="th" rel="alternate"/>
  <link href="/stickershop/product/6310/id" hreflang="id" rel="alternate"/>
  <link href="/stickershop/product/6310/de" hreflang="de" rel="alternate"/>
  <link href="/stickershop/product/6310/fr" hreflang="fr" rel="alternate"/>
  <link href="/stickershop/product/6310/it" hreflang="it" rel="alternate"/>
  <link href="/stickershop/product/6310/pt-BR" hreflang="pt-BR" rel="alternate"/>
  <link href="/stickershop/product/6310/es" hreflang="es" rel="alternate"/>
  <link href="/stickershop/product/6310" hreflang="x-default" rel="alternate"/>
  <link href="https://scdn.line-apps.com/n/line_store_pc/css/line_store_pc_1464165515.css" rel="stylesheet"/>
  <!--[if IE]>
<script src="https://scdn.line-apps.com/n/line_web_store_pc/js/html5_1435113224.js"></script>
<![endif]-->
 </head>
 <body class="ExOsMac">
  <div class="LyWrap">
   <header class="LyHead" xmlns="http://www.w3.org/1999/xhtml">
    <h1 class="MdGHD01Logo">
     <a href="/home/zh-Hant">
      LINE STORE
     </a>
    </h1>
    <div class="MdGHD02Search" data-widget="SearchBox">
     <form action="/stickershop/search/zh-Hant" method="GET">
      <span class="MdIcoSearch01 FnSearchIcon">
      </span>
      <input class="FnSearchInput" name="q" placeholder="貼圖搜尋" type="text" value=""/>
     </form>
    </div>
    <ul class="MdGHD03Util">
     <li class="mdGHD03Li">
      <a href="/login/zh-Hant?url=%2Fstickershop%2Fproduct%2F6310%2Fzh-Hant" rel="nofollow">
       登入
      </a>
     </li>
    </ul>
   </header>
   <div class="LyContents MdCF">
    <div class="LySub" xmlns="http://www.w3.org/1999/xhtml">
     <nav class="MdSB01Nav" role="navigation">
      <h2 class="MdHide">
       Global Navigation
      </h2>
      <ul class="mdSB01Ul01">
       <li class="mdSB01Li01 ExSelected">
        <a data-gcl="rightpane|click|sticker_top" href="/stickershop/home/general/zh-Hant">
         官方貼圖
        </a>
       </li>
       <li class="mdSB01Li01">
        <a data-gcl="rightpane|click|cm-sticker_top" href="/stickershop/home/user/zh-Hant">
         個人原創貼圖
        </a>
       </li>
       <li class="mdSB01Li01">
        <a href="/themeshop/home/zh-Hant">
         官方主題
        </a>
       </li>
       <li class="mdSB01Li01">
        <a href="/themeshop/home/creators/zh-Hant">
         個人原創主題
        </a>
       </li>
       <li class="mdSB01Li01">
        <a data-gcl="rightpane|click|game_top" href="/game/zh-Hant">
         Games
        </a>
       </li>
       <li class="mdSB01Li01">
        <a data-gcl="rightpane|click|play_top" href="/family/play/zh-Hant">
         LINE PLAY
        </a>
       </li>
      </ul>
     </nav>
     <div class="MdSB04Charge">
      <a data-href="/chargeCash" data-reload="true" data-widget="PopUpButton" href="javascript:;" rel="nofollow" title="使用點數卡或電子禮券代碼立刻加值">
       <span class="MdIcoCharge01">
       </span>
       <span>
        購買或兌換點數
       </span>
      </a>
     </div>
     <aside class="MdSB03List">
      <h2 class="mdSB03Ttl">
       <a href="/notice/list/zh-Hant">
        最新資訊
       </a>
      </h2>
      <ul class="mdSB03Ul">
       <li class="mdSB03Li">
        <a href="/notice/20018429/zh-Hant">
         【LINE STORE特別活動】4天超優惠活動!LINE GAME回饋大幅增量(5月13日~5月16日)
        </a>
       </li>
       <li class="mdSB03Li">
        <a href="/notice/20041634/zh-Hant">
         【LINE Pay】LINE STORE購買點數享25%回饋!六大銀行再送10%刷卡金
        </a>
       </li>
       <li class="mdSB03Li">
        <a href="/notice/20041265/zh-Hant">
         將LINE STORE官方帳號加入好友吧! 將會帶給大家許多新貼圖或好康消息喔
        </a>
       </li>
      </ul>
     </aside>
     <ul class="MdSB02List">
      <li class="mdSB02Li">
       <a href="https://help.line.me/webstore/web?lang=zh-Hant">
        常見問題
       </a>
      </li>
     </ul>
    </div>
    <div class="LyMain" role="main">
     <section class="MdBox03">
      <div class="mdBox03Inner01">
       <h2 class="MdHide">
        Detail Info
       </h2>
       <div class="MdCMN08DetailInfo mdCMN08Sticker">
        <div class="mdCMN08Img FnSticker_animation_main_img" style="visibility: hidden;">
         <img height="230" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/iphone/main_animation@2x.png?__=20150924" width="230"/>
         <span class="MdIcoAni_b">
          Animation &amp; Sound icon
         </span>
        </div>
        <div class="mdCMN08Txt">
         <p class="mdCMN08Copy">
          <a href="/stickershop/author/54626/zh-Hant">
           亞拉
          </a>
         </p>
         <h3 class="mdCMN08Ttl">
          貓貓蟲咖波:喵喵叫
         </h3>
         <p class="mdCMN08Desc">
          可愛的咖波終於會叫囉!喵喵喵
         </p>
         <p class="mdCMN08Price">
          NT$60
         </p>
         <ul class="mdCMN08Ul">
          <li class="mdCMN08Li">
           <a class="MdBtn01 mdBtn02" data-event-name="openModalWindow" data-event-target="ModalWindowPresent" data-gcl="sticker|click_gift|login|2" href="/login/zh-Hant?url=%2Fstickershop%2Fproduct%2F6310%2Fzh-Hant" rel="nofollow">
            <span class="mdBtn01Inner">
             <span class="mdBtn01Txt">
              贈送禮物
             </span>
            </span>
           </a>
          </li>
          <li class="mdCMN08Li">
           <a class="MdBtn01 mdBtn01" data-href="/stickershop/payment?packageId=6310&amp;confirmedPrice=NT%2460" data-reload="true" data-widget="PopUpButton" rel="nofollow">
            <span class="mdBtn01Inner">
             <span class="mdBtn01Txt">
              購買
             </span>
            </span>
           </a>
          </li>
          <li class="mdCMN08Li">
           <div class="MdCMN22Share mdCMN22Sticker">
            <a class="mdCMN22IcoShare" href="" title="Share">
             <span>
              Share
             </span>
            </a>
            <ul class="mdCMN22Ul">
             <li class="mdCMN22Li">
              <a class="mdCMN22IcoFB" data-type="fb" data-widget="ShareButton" href="javascript:;" title="Facebook">
               <span>
                Facebook
               </span>
              </a>
             </li>
             <li class="mdCMN22Li">
              <a class="mdCMN22IcoTW" data-share-text="貓貓蟲咖波:喵喵叫 - LINE STORE" data-type="tw" data-widget="ShareButton" href="javascript:;" title="Twitter">
               <span>
                Twitter
               </span>
              </a>
             </li>
            </ul>
           </div>
          </li>
         </ul>
        </div>
       </div>
       <div class="MdHLine01">
       </div>
       <div class="MdCMN09DetailView mdCMN09Sticker">
        <ul class="mdCMN09SystemUl">
         <li class="mdCMN09Systemli">
          <span class="mdCMN09SystemTtl">
           系統環境
          </span>
          <p class="mdCMN09SystemTxt">
           適用於安裝LINE4.4.0的iOS、Android手機,及安裝LINE3.7以後版本的Windows Phone
          </p>
         </li>
         <li class="mdCMN09Systemli">
          <span class="mdCMN09SystemTtl">
           請注意
          </span>
          <p class="mdCMN09SystemTxt">
           本商品的動態效果支援安裝LINE4.4.0的iOS、Android手機,及安裝LINE3.7以後版本的Windows Phone。
          </p>
         </li>
        </ul>
        <div class="mdCMN09Preview">
         <p class="mdCMN09PreviewTxt">
          點擊貼圖即可預覽。
         </p>
        </div>
        <div class="mdCMN09ImgList">
         <div>
          <ul class="mdCMN09Ul FnSticker_animation_list_img">
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980136" style="width: 150px; height: 124px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980136.png); background-size: 150px 124px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980137" style="width: 150px; height: 123px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980137.png); background-size: 150px 123px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980138" style="width: 150px; height: 121px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980138.png); background-size: 150px 121px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980139" style="width: 150px; height: 119px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980139.png); background-size: 150px 119px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980140" style="width: 150px; height: 113px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980140.png); background-size: 150px 113px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980141" style="width: 150px; height: 120px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980141.png); background-size: 150px 120px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980142" style="width: 150px; height: 124px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980142.png); background-size: 150px 124px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980143" style="width: 140px; height: 140px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980143.png); background-size: 140px 140px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980144" style="width: 150px; height: 131px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980144.png); background-size: 150px 131px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980145" style="width: 150px; height: 128px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980145.png); background-size: 150px 128px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980146" style="width: 150px; height: 114px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980146.png); background-size: 150px 114px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980147" style="width: 150px; height: 116px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980147.png); background-size: 150px 116px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980148" style="width: 150px; height: 122px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980148.png); background-size: 150px 122px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980149" style="width: 150px; height: 123px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980149.png); background-size: 150px 123px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980150" style="width: 150px; height: 112px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980150.png); background-size: 150px 112px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980151" style="width: 150px; height: 135px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980151.png); background-size: 150px 135px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980152" style="width: 150px; height: 99px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980152.png); background-size: 150px 99px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980153" style="width: 150px; height: 126px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980153.png); background-size: 150px 126px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980154" style="width: 150px; height: 119px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980154.png); background-size: 150px 119px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980155" style="width: 150px; height: 127px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980155.png); background-size: 150px 127px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980156" style="width: 150px; height: 111px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980156.png); background-size: 150px 111px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980157" style="width: 149px; height: 140px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980157.png); background-size: 149px 140px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980158" style="width: 150px; height: 131px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980158.png); background-size: 150px 131px;">
             </span>
            </div>
           </li>
           <li class="mdCMN09Li">
            <div class="mdCMN09LiInner">
             <span class="mdCMN09Image" data-sticker-id="10980159" style="width: 150px; height: 112px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980159.png); background-size: 150px 112px;">
             </span>
            </div>
           </li>
          </ul>
         </div>
        </div>
        <p class="mdCMN09Copy">
         ©YARA
        </p>
       </div>
      </div>
      <div class="mdBox03Inner02">
       <div class="MdHead01">
        <h2 class="MdTtl02">
         相似的貼圖
        </h2>
       </div>
       <div class="MdCMN01List">
        <ul class="mdCMN01Ul">
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5782/zh-Hant" title="咖波跳來跳去">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5782/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              咖波跳來跳去
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5114/zh-Hant" title="咖波扭來扭去2">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5114/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              咖波扭來扭去2
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/4141/zh-Hant" title="咖波動來動去">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4141/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              咖波動來動去
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/1257466/zh-Hant" title="奶泡貓與咖波">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1257466/LINEStorePC/thumbnail_shop.png" width="60"/>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              奶泡貓與咖波
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/1092056/zh-Hant" title="貓貓蟲-咖波2">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1092056/LINEStorePC/thumbnail_shop.png" width="60"/>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              貓貓蟲-咖波2
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/1043153/zh-Hant" title="貓貓蟲-咖波">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1043153/LINEStorePC/thumbnail_shop.png" width="60"/>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              貓貓蟲-咖波
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/4587/zh-Hant" title="ㄇㄚˊ幾兔(動幾來)">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4587/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              ㄇㄚˊ幾兔(動幾來)
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5405/zh-Hant" title="ㄇㄚˊ幾兔(動幾來2)">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/2/5405/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              ㄇㄚˊ幾兔(動幾來2)
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/6150/zh-Hant" title="不死兔的兔兔愛聊天(聲音貼圖2)">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6150/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              不死兔的兔兔愛聊天(聲音貼圖2)
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5650/zh-Hant" title="不死兔的兔兔愛說話(聲音貼圖)">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5650/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              不死兔的兔兔愛說話(聲音貼圖)
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/6368/zh-Hant" title="SANA殺哪~Part.5 (對話篇)">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6368/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              SANA殺哪~Part.5 (對話篇)
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5205/zh-Hant" title="蛋黃哥說話動態貼圖-百變蛋黃哥篇">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5205/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              蛋黃哥說話動態貼圖-百變蛋黃哥篇
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/4329/zh-Hant" title="蛋黃哥說話動態貼圖">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4329/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              蛋黃哥說話動態貼圖
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/1273496/zh-Hant" title="寶寶不說">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1273496/LINEStorePC/thumbnail_shop.png" width="60"/>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              寶寶不說
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/6011/zh-Hant" title="會說話的!史迪奇">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6011/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoSound_s">
              Sound only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              會說話的!史迪奇
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5841/zh-Hant" title="豆卡頻道-聲動貼">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5841/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoAni_s">
              Animation &amp; Sound icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              豆卡頻道-聲動貼
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5172/zh-Hant" title="白白日記,會動了!">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5172/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              白白日記,會動了!
             </h3>
            </div>
           </div>
          </a>
         </li>
         <li class="mdCMN01Li">
          <a href="/stickershop/product/5557/zh-Hant" title="懶得“鳥”你動態貼圖">
           <div class="MdCMN07Item mdCMN07Sticker">
            <div class="mdCMN07Img">
             <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5557/LINEStorePC/thumbnail_shop.png" width="60"/>
             <span class="MdIcoPlay_s">
              Animation only icon
             </span>
            </div>
            <div class="mdCMN07Txt">
             <h3 class="mdCMN07Ttl">
              懶得“鳥”你動態貼圖
             </h3>
            </div>
           </div>
          </a>
         </li>
        </ul>
       </div>
      </div>
     </section>
    </div>
   </div>
   <footer class="LyFoot" role="contentinfo" xmlns="http://www.w3.org/1999/xhtml">
    <!-- For TW -->
    <div class="lyFootInner">
     <h1 class="MdHide">
      LINE Taiwan Limited Link
     </h1>
     <div class="MdGFT02Link">
      <ul class="mdGFT02Ul">
       <li>
        <a href="/terms/zh-Hant">
         服務條款
        </a>
       </li>
       <li>
        <a href="/terms/line_rules/zh-Hant">
         隱私權政策
        </a>
       </li>
       <li>
        <a href="/terms/taiwan_mktpp/zh-Hant">
         行銷資料提供政策
        </a>
       </li>
      </ul>
     </div>
     <p class="MdGFT01Copy">
      <small>
       ©
       <b>
        LINE Taiwan Limited.
       </b>
      </small>
     </p>
    </div>
    <div class="MdGFT03Lang">
     <div class="mdGFT03NewSelect01" data-form=".FnLanguageSelectForm" data-widget="Select">
      <div class="mdGFT03Label">
       <span class="mdGFT03LabelTxt">
       </span>
      </div>
      <ul class="mdGFT03Ul MdHide">
       <li class="mdGFT03Li" data-action="/setLanguage/ja">
        <a class="mdGFT03Txt">
         日本語
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/en">
        <a class="mdGFT03Txt">
         English
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/zh-Hant" data-selected="true">
        <a class="mdGFT03Txt">
         中文(繁体)
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/zh-Hans">
        <a class="mdGFT03Txt">
         中文(简体)
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/ko">
        <a class="mdGFT03Txt">
         한국어
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/th">
        <a class="mdGFT03Txt">
         ภาษาไทย
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/id">
        <a class="mdGFT03Txt">
         Bahasa Indonesia
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/de">
        <a class="mdGFT03Txt">
         Deutsch
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/fr">
        <a class="mdGFT03Txt">
         Français
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/it">
        <a class="mdGFT03Txt">
         Italiano
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/pt-BR">
        <a class="mdGFT03Txt">
         Português brasileiro
        </a>
       </li>
       <li class="mdGFT03Li" data-action="/setLanguage/es">
        <a class="mdGFT03Txt">
         Español
        </a>
       </li>
      </ul>
      <form action="" class="FnLanguageSelectForm" method="POST">
       <input name="url" type="hidden" value="/stickershop/product/6310/zh-Hant"/>
      </form>
     </div>
    </div>
   </footer>
   <!-- friend item templates -->
   <script class="FnPresentFriendTemplate" type="text/template">
    <tr>
    <td class="mdLYR08TdImg">
      <div class="mdLYR08Img"><span class="mdLYR08Shadow"></span><img src="{{imageUrl}}" /></div>
    </td>
    <td class="mdLYR08TdTxt">
      <div class="mdLYR08Txt">{{name}}</div>
    </td>
    <td class="mdLYR08TdBtn"><a class="MdBtn05 FnFrindSelectBtn" href="javascript:;"><span class="mdBtn05Inner"><span class="mdBtn05Txt">選擇</span></span></a></td>
  </tr>
   </script>
   <!-- templates for radio buttons -->
   <script class="FnCallPlanRadioTemplate" type="text/template">
    <li class="mdCMN17Li" data-gcl="call|check|call_30day_charge_${id}">
    <label>
      <div class="MdIcoRadio01 {{selectedClass}}">
        <span class="mdIcoRadio01Ico"></span>
        <input name="type" value="{{id}}" type="radio" data-price="{{displayPrice}}" data-product-id="{{id}}" data-item-type="{{type}}" />
      </div>
      <p class="mdCMN17LiTxt">{{name}}</p>
    </label>
  </li>
   </script>
  </div>
  <div class="MdOverlay FnOverlay" style="display:none;">
  </div>
  <div class="MdLYR01Box" data-widget="ModalWindow" data-widget-id="ModalWindowPresent" style="top: 50%; left: 50%; margin-left: -241px; margin-top: -305px; display: none;'">
   <div class="MdLYR02Body mdLYR02Present" data-friends-api="/api/present/friends" data-package-id="123456" data-submit-url="/stickershop/payment?packageId=6310&amp;confirmedPrice=NT%2460" data-to-user-param="toUserMid" data-widget="PresentFriends">
    <a class="mdLYR02Close FnModalWindowClose" href="javascript:;">
     <span class="MdBtnClose01">
      關閉
     </span>
    </a>
    <div class="MdLYR03Head">
     <h1 class="mdLYR03Ttl">
      選擇好友
     </h1>
    </div>
    <div data-tab-id="0" style="display: none;">
     <p class="mdLYR02Desc">
      請選擇要送禮的好友。
     </p>
     <div class="MdLYR07Search FnFriendsSearchWrap">
      <div class="mdLYR07SearchBox">
       <input class="FnFriendsSearchInput" id="" name="" placeholder="搜尋" type="text" value=""/>
       <span class="MdIcoSearch02 FnFriendsSearchBtn">
       </span>
      </div>
      <div class="MdLYR08List">
       <p class="mdLYR08noR FnFriendsNoResults" style="display: none;">
        找不到符合條件的資料
       </p>
       <table class="mdLYR08Tbl FnFriendsTable">
       </table>
      </div>
     </div>
    </div>
    <div data-tab-id="1" style="display: none;">
     <p class="mdLYR02Desc">
      請選擇送禮通知的圖樣
     </p>
     <div class="MdLYR08List">
      <ul class="mdLYR08Ul" data-widget="RadioGroup" data-widget-id="presentFriendsRadioGroup">
       <li class="mdLYR08Li ExSelected">
        <label>
        </label>
        <div class="MdIcoRadio02">
         <label>
          <span class="mdIcoRadio02Ico">
          </span>
          <input name="presentTemplateId" type="radio" value="0"/>
         </label>
        </div>
        <label>
         <span class="mdLYR08Img01">
          For You - Sticker Type 01
         </span>
        </label>
       </li>
       <li class="mdLYR08Li">
        <label>
        </label>
        <div class="MdIcoRadio02">
         <label>
          <span class="mdIcoRadio02Ico">
          </span>
          <input name="presentTemplateId" type="radio" value="1"/>
         </label>
        </div>
        <label>
         <span class="mdLYR08Img02">
          For You - Sticker Type 02
         </span>
        </label>
       </li>
       <li class="mdLYR08Li">
        <label>
        </label>
        <div class="MdIcoRadio02">
         <label>
          <span class="mdIcoRadio02Ico">
          </span>
          <input name="presentTemplateId" type="radio" value="2"/>
         </label>
        </div>
        <label>
         <span class="mdLYR08Img03">
          For You - Sticker Type 03
         </span>
        </label>
       </li>
       <li class="mdLYR08Li">
        <label>
        </label>
        <div class="MdIcoRadio02">
         <label>
          <span class="mdIcoRadio02Ico">
          </span>
          <input name="presentTemplateId" type="radio" value="3"/>
         </label>
        </div>
        <label>
         <span class="mdLYR08Img04">
          For You - Sticker Type 04
         </span>
        </label>
       </li>
      </ul>
      <div class="mdLYR08Send">
       <p class="mdLYR08SendTxt">
       </p>
       <div class="mdLYR08SendBtn">
        <a class="MdBtn01 mdBtn03 FnCancelBtn" href="javascript:;">
         <span class="mdBtn01Inner">
          <span class="mdBtn01Txt">
           取消
          </span>
         </span>
        </a>
        <a class="MdBtn01 mdBtn01 FnSubmitBtn" href="javascript:;">
         <span class="mdBtn01Inner">
          <span class="mdBtn01Txt">
           NT$60 購買
          </span>
         </span>
        </a>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
  <div>
  </div>
  <script type="text/javascript">
   //<![CDATA[
    //
    var OPTIONS = {
        config: {
            debug: false,
            pageType: "sticker_detail",
            staticUrl: 'https://scdn.line-apps.com/n'
        },
        // define messages only used in JS
        messages: {
        }
    };

        // NOTE: pageType 'sticker_detail' requires the sticker option
    OPTIONS.config.sticker = {
        // type: '', 'animation', 'sound', 'soundanimation', 'popup', 'popupsound'
        type: 'soundanimation',
        // e.g. animation sticker example on detail page
        baseURL: 'https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/',
        ids: [10980136,10980137,10980138,10980139,10980140,10980141,10980142,10980143,10980144,10980145,10980146,10980147,10980148,10980149,10980150,10980151,10980152,10980153,10980154,10980155,10980156,10980157,10980158,10980159]
    };
        
    //
    //]]>
  </script>
  <script src="https://scdn.line-apps.com/n/line_store_pc/js/lc.line.store.pc.main_1464165515.js">
  </script>
  <script>
   /*<![CDATA[*/(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-TVHZDL');/*]]>*/
  </script>
  <script>
   dataLayer.push({'user': {
        isLoggedIn: false,
        viewType: 'PC',
        displayLanguage: 'CHINESE_TRADITIONAL',
        country: 'TW',
        currencyType: 'TWD',
        deviceModel: {
            applicationType: 'ANONYMOUS',
            applicationVersion: 'ANONYMOUS'
        }
    }});
    dataLayer.push({
        salesInformation: {
            priceTier: 2,
            isCreators: false,
        },
    });
  </script>
 </body>
</html>


In [7]:
soup.find_all('a')


Out[7]:
[<a href="/home/zh-Hant">LINE STORE</a>,
 <a href="/login/zh-Hant?url=%2Fstickershop%2Fproduct%2F6310%2Fzh-Hant" rel="nofollow">登入</a>,
 <a data-gcl="rightpane|click|sticker_top" href="/stickershop/home/general/zh-Hant">官方貼圖</a>,
 <a data-gcl="rightpane|click|cm-sticker_top" href="/stickershop/home/user/zh-Hant">個人原創貼圖</a>,
 <a href="/themeshop/home/zh-Hant">官方主題</a>,
 <a href="/themeshop/home/creators/zh-Hant">個人原創主題</a>,
 <a data-gcl="rightpane|click|game_top" href="/game/zh-Hant">Games</a>,
 <a data-gcl="rightpane|click|play_top" href="/family/play/zh-Hant">LINE PLAY</a>,
 <a data-href="/chargeCash" data-reload="true" data-widget="PopUpButton" href="javascript:;" rel="nofollow" title="使用點數卡或電子禮券代碼立刻加值"><span class="MdIcoCharge01"></span><span>購買或兌換點數</span></a>,
 <a href="/notice/list/zh-Hant">最新資訊</a>,
 <a href="/notice/20018429/zh-Hant">【LINE STORE特別活動】4天超優惠活動!LINE GAME回饋大幅增量(5月13日~5月16日)</a>,
 <a href="/notice/20041634/zh-Hant">【LINE Pay】LINE STORE購買點數享25%回饋!六大銀行再送10%刷卡金</a>,
 <a href="/notice/20041265/zh-Hant">將LINE STORE官方帳號加入好友吧! 將會帶給大家許多新貼圖或好康消息喔</a>,
 <a href="https://help.line.me/webstore/web?lang=zh-Hant">常見問題</a>,
 <a href="/stickershop/author/54626/zh-Hant">亞拉</a>,
 <a class="MdBtn01 mdBtn02" data-event-name="openModalWindow" data-event-target="ModalWindowPresent" data-gcl="sticker|click_gift|login|2" href="/login/zh-Hant?url=%2Fstickershop%2Fproduct%2F6310%2Fzh-Hant" rel="nofollow"><span class="mdBtn01Inner"><span class="mdBtn01Txt">贈送禮物</span></span></a>,
 <a class="MdBtn01 mdBtn01" data-href="/stickershop/payment?packageId=6310&amp;confirmedPrice=NT%2460" data-reload="true" data-widget="PopUpButton" rel="nofollow"><span class="mdBtn01Inner"><span class="mdBtn01Txt">購買</span></span></a>,
 <a class="mdCMN22IcoShare" href="" title="Share"><span>Share</span></a>,
 <a class="mdCMN22IcoFB" data-type="fb" data-widget="ShareButton" href="javascript:;" title="Facebook"><span>Facebook</span></a>,
 <a class="mdCMN22IcoTW" data-share-text="貓貓蟲咖波:喵喵叫 - LINE STORE" data-type="tw" data-widget="ShareButton" href="javascript:;" title="Twitter"><span>Twitter</span></a>,
 <a href="/stickershop/product/5782/zh-Hant" title="咖波跳來跳去">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5782/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">咖波跳來跳去</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5114/zh-Hant" title="咖波扭來扭去2">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5114/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">咖波扭來扭去2</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/4141/zh-Hant" title="咖波動來動去">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4141/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">咖波動來動去</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/1257466/zh-Hant" title="奶泡貓與咖波">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1257466/LINEStorePC/thumbnail_shop.png" width="60"/>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">奶泡貓與咖波</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/1092056/zh-Hant" title="貓貓蟲-咖波2">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1092056/LINEStorePC/thumbnail_shop.png" width="60"/>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">貓貓蟲-咖波2</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/1043153/zh-Hant" title="貓貓蟲-咖波">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1043153/LINEStorePC/thumbnail_shop.png" width="60"/>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">貓貓蟲-咖波</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/4587/zh-Hant" title="ㄇㄚˊ幾兔(動幾來)">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4587/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">ㄇㄚˊ幾兔(動幾來)</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5405/zh-Hant" title="ㄇㄚˊ幾兔(動幾來2)">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/2/5405/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">ㄇㄚˊ幾兔(動幾來2)</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/6150/zh-Hant" title="不死兔的兔兔愛聊天(聲音貼圖2)">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6150/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">不死兔的兔兔愛聊天(聲音貼圖2)</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5650/zh-Hant" title="不死兔的兔兔愛說話(聲音貼圖)">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5650/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">不死兔的兔兔愛說話(聲音貼圖)</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/6368/zh-Hant" title="SANA殺哪~Part.5 (對話篇)">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6368/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">SANA殺哪~Part.5 (對話篇)</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5205/zh-Hant" title="蛋黃哥說話動態貼圖-百變蛋黃哥篇">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5205/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">蛋黃哥說話動態貼圖-百變蛋黃哥篇</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/4329/zh-Hant" title="蛋黃哥說話動態貼圖">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/4329/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">蛋黃哥說話動態貼圖</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/1273496/zh-Hant" title="寶寶不說">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/1273496/LINEStorePC/thumbnail_shop.png" width="60"/>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">寶寶不說</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/6011/zh-Hant" title="會說話的!史迪奇">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/6011/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoSound_s">Sound only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">會說話的!史迪奇</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5841/zh-Hant" title="豆卡頻道-聲動貼">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5841/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoAni_s">Animation &amp; Sound icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">豆卡頻道-聲動貼</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5172/zh-Hant" title="白白日記,會動了!">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5172/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">白白日記,會動了!</h3>
 </div>
 </div></a>,
 <a href="/stickershop/product/5557/zh-Hant" title="懶得“鳥”你動態貼圖">
 <div class="MdCMN07Item mdCMN07Sticker">
 <div class="mdCMN07Img">
 <img height="60" src="https://sdl-stickershop.line.naver.jp/products/0/0/1/5557/LINEStorePC/thumbnail_shop.png" width="60"/>
 <span class="MdIcoPlay_s">Animation only icon</span>
 </div>
 <div class="mdCMN07Txt">
 <h3 class="mdCMN07Ttl">懶得“鳥”你動態貼圖</h3>
 </div>
 </div></a>,
 <a href="/terms/zh-Hant">服務條款</a>,
 <a href="/terms/line_rules/zh-Hant">隱私權政策</a>,
 <a href="/terms/taiwan_mktpp/zh-Hant">行銷資料提供政策</a>,
 <a class="mdGFT03Txt">日本語</a>,
 <a class="mdGFT03Txt">English</a>,
 <a class="mdGFT03Txt">中文(繁体)</a>,
 <a class="mdGFT03Txt">中文(简体)</a>,
 <a class="mdGFT03Txt">한국어</a>,
 <a class="mdGFT03Txt">ภาษาไทย</a>,
 <a class="mdGFT03Txt">Bahasa Indonesia</a>,
 <a class="mdGFT03Txt">Deutsch</a>,
 <a class="mdGFT03Txt">Français</a>,
 <a class="mdGFT03Txt">Italiano</a>,
 <a class="mdGFT03Txt">Português brasileiro</a>,
 <a class="mdGFT03Txt">Español</a>,
 <a class="mdLYR02Close FnModalWindowClose" href="javascript:;"><span class="MdBtnClose01">關閉</span></a>,
 <a class="MdBtn01 mdBtn03 FnCancelBtn" href="javascript:;"><span class="mdBtn01Inner"><span class="mdBtn01Txt">取消</span></span></a>,
 <a class="MdBtn01 mdBtn01 FnSubmitBtn" href="javascript:;"><span class="mdBtn01Inner"><span class="mdBtn01Txt">NT$60 購買</span></span></a>]
  • 獲取圖片的 STYLE 部分

In [8]:
for tag in soup.find_all('span', 'mdCMN09Image'):
    print(tag['style'])


width: 150px; height: 124px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980136.png); background-size: 150px 124px;
width: 150px; height: 123px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980137.png); background-size: 150px 123px;
width: 150px; height: 121px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980138.png); background-size: 150px 121px;
width: 150px; height: 119px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980139.png); background-size: 150px 119px;
width: 150px; height: 113px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980140.png); background-size: 150px 113px;
width: 150px; height: 120px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980141.png); background-size: 150px 120px;
width: 150px; height: 124px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980142.png); background-size: 150px 124px;
width: 140px; height: 140px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980143.png); background-size: 140px 140px;
width: 150px; height: 131px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980144.png); background-size: 150px 131px;
width: 150px; height: 128px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980145.png); background-size: 150px 128px;
width: 150px; height: 114px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980146.png); background-size: 150px 114px;
width: 150px; height: 116px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980147.png); background-size: 150px 116px;
width: 150px; height: 122px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980148.png); background-size: 150px 122px;
width: 150px; height: 123px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980149.png); background-size: 150px 123px;
width: 150px; height: 112px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980150.png); background-size: 150px 112px;
width: 150px; height: 135px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980151.png); background-size: 150px 135px;
width: 150px; height: 99px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980152.png); background-size: 150px 99px;
width: 150px; height: 126px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980153.png); background-size: 150px 126px;
width: 150px; height: 119px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980154.png); background-size: 150px 119px;
width: 150px; height: 127px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980155.png); background-size: 150px 127px;
width: 150px; height: 111px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980156.png); background-size: 150px 111px;
width: 149px; height: 140px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980157.png); background-size: 149px 140px;
width: 150px; height: 131px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980158.png); background-size: 150px 131px;
width: 150px; height: 112px; background-image:url(https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980159.png); background-size: 150px 112px;

In [9]:
line_stickers = []

for tag in soup.find_all('span', 'mdCMN09Image'):
    style = tag['style']
    l_parentheses = style.rfind('(') + 1
    r_parentheses = style.rfind(')')
    path = style[l_parentheses:r_parentheses]
    line_stickers.append(path)
    print(path)


https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980136.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980137.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980138.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980139.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980140.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980141.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980142.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980143.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980144.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980145.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980146.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980147.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980148.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980149.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980150.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980151.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980152.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980153.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980154.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980155.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980156.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980157.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980158.png
https://sdl-stickershop.line.naver.jp/products/0/0/1/6310/android/stickers/10980159.png
  • 建立存放資料夾

In [10]:
title = soup.title.text.split(':')[0].strip()
if not os.path.exists(title):
    os.mkdir(title)
  • 開始下載

In [11]:
for url in line_stickers:
    local_filename = url.split('/')[-1]
    response = requests.get(url, stream=True)
    with open(os.path.join(title, local_filename), 'wb') as f:
        for chunk in response.iter_content(chunk_size=1024):
            if chunk:
                f.write(chunk)
    print('{} Downloaded!'.format(local_filename))
print('Completed!')


10980136.png Downloaded!
10980137.png Downloaded!
10980138.png Downloaded!
10980139.png Downloaded!
10980140.png Downloaded!
10980141.png Downloaded!
10980142.png Downloaded!
10980143.png Downloaded!
10980144.png Downloaded!
10980145.png Downloaded!
10980146.png Downloaded!
10980147.png Downloaded!
10980148.png Downloaded!
10980149.png Downloaded!
10980150.png Downloaded!
10980151.png Downloaded!
10980152.png Downloaded!
10980153.png Downloaded!
10980154.png Downloaded!
10980155.png Downloaded!
10980156.png Downloaded!
10980157.png Downloaded!
10980158.png Downloaded!
10980159.png Downloaded!
Completed!

In [12]:
ls


crawler.ipynb  Simple1 - Line_stickers.ipynb  Simple code/    貓貓蟲咖波/
images/        Simple2 - Elearning.ipynb      Untitled.ipynb

In [13]:
ls -al 貓貓蟲咖波/


總計 288
drwxr-xr-x 2 web web  4096  5月 17 18:30 ./
drwxr-xr-x 6 web web  4096  6月  7 07:42 ../
-rw-r--r-- 1 web web 10326  6月  7 07:46 10980136.png
-rw-r--r-- 1 web web 11317  6月  7 07:46 10980137.png
-rw-r--r-- 1 web web  9533  6月  7 07:46 10980138.png
-rw-r--r-- 1 web web  9460  6月  7 07:46 10980139.png
-rw-r--r-- 1 web web  5418  6月  7 07:46 10980140.png
-rw-r--r-- 1 web web 10203  6月  7 07:46 10980141.png
-rw-r--r-- 1 web web  6961  6月  7 07:46 10980142.png
-rw-r--r-- 1 web web  9666  6月  7 07:46 10980143.png
-rw-r--r-- 1 web web 10252  6月  7 07:46 10980144.png
-rw-r--r-- 1 web web  7336  6月  7 07:46 10980145.png
-rw-r--r-- 1 web web  9227  6月  7 07:46 10980146.png
-rw-r--r-- 1 web web  8237  6月  7 07:46 10980147.png
-rw-r--r-- 1 web web 12598  6月  7 07:46 10980148.png
-rw-r--r-- 1 web web  9043  6月  7 07:46 10980149.png
-rw-r--r-- 1 web web 10922  6月  7 07:46 10980150.png
-rw-r--r-- 1 web web 10891  6月  7 07:46 10980151.png
-rw-r--r-- 1 web web  7263  6月  7 07:46 10980152.png
-rw-r--r-- 1 web web 11903  6月  7 07:46 10980153.png
-rw-r--r-- 1 web web 10463  6月  7 07:46 10980154.png
-rw-r--r-- 1 web web  9459  6月  7 07:46 10980155.png
-rw-r--r-- 1 web web  9253  6月  7 07:46 10980156.png
-rw-r--r-- 1 web web  9917  6月  7 07:46 10980157.png
-rw-r--r-- 1 web web 12593  6月  7 07:46 10980158.png
-rw-r--r-- 1 web web 11635  6月  7 07:46 10980159.png

In [ ]: